
import java.util.Hashtable;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class UniItem
{
    private Hashtable tab = null;

    public UniItem()
    {
        tab = new Hashtable();
    }

    public void add(String key, String val)
    {
        tab.put(key, val);
    }

    public void add(String key, int val)
    {
        tab.put(key, String.valueOf(val));
    }

    public String getStr(String key)
    {
        return (String)tab.get(key);
    }

    public int getInt(String key)
    {
        return Integer.parseInt((String)tab.get(key));
    }
}
